package com.z.platform.controller.persistence.orm;

import com.z.ssmdemo.log.factory.ELogger;
import com.z.ssmdemo.log.factory.LogFactory;

/**
 * @author 21051
 */
public class DaoFactory {

    private static final ELogger LOG = LogFactory.getLog(DaoFactory.class);
    private static class inner {
        private static final DaoFactory INSTANCE = new DaoFactory();
    }

    private DaoFactory() {
    }

    public static Dao getInstance() {
        LOG.debug("获取DaoFactory工厂对象");
        DaoFactory instance = inner.INSTANCE;
       return instance.getJdbcDao();
    }

    private Dao getJdbcDao() {
        return new JdbcDao();
    }
}
